package com.itheima.exerciseTest.test20_29;

import java.time.DayOfWeek;
import java.time.LocalDate;

public class Test25 {
    public static void main(String[] args) {
        LocalDate localDate = LocalDate.of(2018, 2, 14);
        DayOfWeek dayOfWeek = localDate.getDayOfWeek();
        System.out.print(dayOfWeek + " ");
        switch (dayOfWeek){
            case MONDAY:
                System.out.println("星期一");
                break;
            case TUESDAY:
                System.out.println("星期二");
                break;
            case WEDNESDAY:
                System.out.println("星期三");
                break;
            case THURSDAY:
                System.out.println("星期四");
                break;
            case SATURDAY:
                System.out.println("星期五");
                break;
            case FRIDAY:
                System.out.println("星期六");
                break;
            case SUNDAY:
                System.out.println("星期日");
                break;
            default:
                break;
        }
    }
}
